# -*- coding: utf-8 -*-

# #判断一个变量的类型
# test_id = 2323123
# print(isinstance(test_id, str))
#
# #判断字符串中 是否都是数字
# test_int = "4324234"
# print(test_int.isdigit())
#
# replace = "geggeg_1231231"
# #替换字符串
# print(replace.replace("_",""))
# #分割字符串
# print(replace.split("_"))
#
# #随机字符串
import random
import string
def add_sed():
    s = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(20))
    r = ''.join(random.choices(string.ascii_letters + string.digits, k=15))
    print(s)
    print(r)


add_sed()
#
# print( '0' for _ in range(81))
#
# str = 'ok_sub_spot_ltc_eth_ticker'
# strdata = str.split("_")
# print(strdata[3] + strdata[4])
# print('**********************************')
#
# str = 'fiery'
# print('第一个字符转换为大写: {}'.format(str.capitalize()))
# print('返回一个原字符串居中，并使用参数填充的新字符串：{}'.format(str.center(20, '*')))

#翻转字符串
str = 'fiery_test'
print(str[::-1])

